﻿using BDShop.DAL;
using BDShop.Entities;
using System;
using System.Collections.Generic;
using IsolationLevel = System.Transactions.IsolationLevel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BDShop.Business
{
    public class ProductPropertyService
    {
        public static List<ProductProperty> GetByID(long id)
        {
            List<ProductProperty> lstProductProperty = new List<ProductProperty>();
            using (var context = new BDShopEntities(IsolationLevel.ReadUncommitted))
            {
                lstProductProperty = context.ProductProperties.Where(p=>p.ProductID==id).ToList();
            }

            return lstProductProperty;
        }
    }
}
